package com.example.app.components.MyDivider

import androidx.compose.material3.DividerDefaults
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.VerticalDivider
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.Dp

enum class MyDividerDirection(var direction: String) {
    HOR("HOR"),
    VER("VER");
}
@Composable
fun MyDivider(
        myDividerDirection: MyDividerDirection,
        modifier: Modifier = Modifier,
        thickness: Dp = DividerDefaults.Thickness,
        color: Color = DividerDefaults.color.copy(.3f),
) {
    if (myDividerDirection.direction == MyDividerDirection.HOR.direction) {
        HorizontalDivider(
            modifier,
            thickness,
            color,
        )
    } else {
        VerticalDivider(
            modifier,
            thickness,
            color,
        )
    }
}